﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace CinemaProject
{
    
    public class Seat
    {
        
        private int id;
        private Room room;
        private int row;
        private int col;
        private bool reserved;

        public Seat()
        {
            id = 0;
            room = null;
            row = -1;
            col = -1;
        }
        public Seat(int id)
        {
            this.id = id;
            room = null;
            row = -1;
            col = -1;
        }
        public Seat(int id, Room room, int row, int col)
        {
            this.id = id;
            this.room = room;
            this.row = row;
            this.col = col;
        }

        #region Get%Set
        public int _id
        {
            get{return id;}
            set{id = value;}
        }
        
        public Room _room
        {
            get{return room;}
            set{room = value;}
        }
        
        public int _row
        {
            get{return row;}
            set{row = value;}
        }
        
        public int _col
        {
            get{return col;}
            set{col = value;}
        }

        public bool _reserved
        {
            get { return reserved; }
            set { reserved = value; }
        }
        #endregion
    }
}
